<template>
    <div class="btnDiv">
      <van-button class="btn" @click="run">按钮</van-button>
      <div>
        {{msg}}
      </div>
    </div>
</template>



<script>
   export default {
     name:"AppHeader",
     data(){
       return {
         msg:"zs"
       }
     },
     methods:{
       run(){
          this.msg="ls"
       }
     }
   }
</script>


<style>
.btnDiv{
  background-color: red;
}

.btn{
  display: block;
  width: 333px;
}

</style>